﻿// Copyright 2007. Adobe Systems Incorporated. All Rights Reserved.
package com.adobe.captivate.events 
{
	import flash.events.Event;

	/**
	 * The CaptivateEvent class defines the base class for all events that will be fired by a captivate movie. 
     *
     *
     * @langversion 3.0
     * @playerversion Flash 9.0.28.0
	 */
	public class CPMoviePauseEvent extends CaptivateEvent 
	{
		public static const CPMOVIEPAUSEEVENT:String = "CPMoviePauseEvent";
		protected var m_FrameNumber:Number;
		protected var m_SlideNumber:Number;
		protected var m_UserPause:Boolean;

		public function CPMoviePauseEvent(captivateVersion:String="",frameNumber:Number=0,
			slideNumber:Number=0,userPause:Boolean=false,cancelable:Boolean = false) 
		{
			super(CPMoviePauseEvent.CPMOVIEPAUSEEVENT,captivateVersion,cancelable);
			m_FrameNumber = frameNumber;
			m_SlideNumber = slideNumber;
			m_UserPause = userPause;
		}
		public override function clone():Event
		{
			return new CPMoviePauseEvent(captivateVersion,frameNumber,slideNumber,userPause,cancelable);
		}
		public function get frameNumber():Number
		{
			return m_FrameNumber;
		}
		public function get slideNumber():Number
		{
			return m_SlideNumber;
		}
		public function get userPause():Boolean
		{
			return m_UserPause;
		}
		public override function toString():String
		{
			return formatToString("CPMoviePauseEvent","type","bubbles","cancelable","eventPhase","captivateVersion","slideNumber","frameNumber","userPause");
		}
	}
}
